package com.hank.demo1.controller;

import com.hank.demo1.service.ApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@CrossOrigin
@RequestMapping("/chatTable")
public class ApiController {

    @Autowired
    ApiService apiService;

    @PostMapping("/getTableJson")
    public String getTableJson(@RequestBody String str) throws Exception {
        return apiService.getTableJson(str);
    }
}
